package com.zr.gdms.serviceimpl;

import com.zr.gdms.dao.ApplicationDao;
import com.zr.gdms.daoimpl.ApplicationDaoImpl;
import com.zr.gdms.service.ApplicationService;

import net.sf.json.JSONArray;
/**
 * 申请表服务实现层
 * @author 李培宁
 *
 */
public class ApplicationServiceImpl implements ApplicationService{

	ApplicationDao adao = new ApplicationDaoImpl();

	@Override
	public JSONArray getAllApplication(int page, int rows,String apptype) {
		return adao.selectApplication(page, rows, apptype);
	}

	@Override
	public int getApplicationCount(String apptype) {
		// TODO Auto-generated method stub
		return adao.findApplicationCount(apptype);
	}

	@Override
	public boolean updateApplication(String appstate,String apptype) {
		// TODO Auto-generated method stub
		return adao.updateApplication(appstate, apptype);
	}
	

}
